<?php

/**
 * Template for one div inside
 * Unanswered tags block
 *
 */
class tplUnanstags extends StudyBuddy\Template\Template
{

	/**
	 * This is important!
	 * Since tags can be any combination of cars, even
	 * brackets and + sign, we should always urlencode tag's value
	 * for the link!
	 *
	 * @param array $a
	 */
	protected static function func(&$a){
		$a['encoded'] = urlencode($a['tag']);
	}

	protected static $vars = array(
	'tag' => '', //1 
	'i_count' => '', //2
	'encoded' => '' // 3
	);

	protected static $tpl_ = '
	<div class="t2 t-%1$s">
	<a href="/unanswered/tagged/%3$s/" title="Unanswered questions tagged \'%1$s\'">%1$s</a>
	<span>&times;&nbsp;%2$s</span>
	</div>';
	
	protected static $tpl = '<li>
								<a href="/unanswered/tagged/%3$s/" title="Questions tagged \'%1$s\'">
									<span class="tag-left"></span>
									<span class="tag-mid">%1$s</span>
									<span class="tag-right"></span>
								</a>
							</li>';


}